package com.zhouyu.exampledesignmoudle.decorator;

/**
 * @Description:装饰2
 */
public class ChangeBird extends Changer {

    public ChangeBird(TheGreatestSage theGreatestSage) {
        super(theGreatestSage);
    }

    private void doDecora() {
        Monkey monkey = (Monkey) theGreatestSage;
        monkey.setSkin("齐天大圣装饰成为一只鸟");
    }

    @Override
    public void display() {
        doDecora();
        theGreatestSage.display();
    }
}
